package com.autotest.nore.mapper;

import com.autotest.nore.domain.Report;
import com.autotest.nore.domain.ReportStatistics;
import com.autotest.nore.dto.ReportDTO;
import com.autotest.nore.request.QueryRequest;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ReportMapper {
    void addReport(Report report);

    ReportStatistics getReportStatistics(String reportId);

    void updateReportEndTime(String reportId, Long endTime, Long updateTime);

    void updateReportStatistics(ReportStatistics reportStatistics);

    void deleteReport(String id);

    void updateReportStatus(String status, String id);

    List<ReportDTO> getReportList(QueryRequest request);

    List<ReportDTO> getReportList2(String projectId,String collectionId);

    ReportDTO getReportDetail(String reportId);

}